package com.kyzh.core.pager.weal.groupchat.vm

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.gushenge.core.beans.TuiQunBean
import com.gushenge.core.requests.WealRequest
import kotlinx.coroutines.launch

class GroupChatVM :  ViewModel()  {
    fun getGroupChatList(listener : ArrayList<TuiQunBean>.()->Unit){
        viewModelScope.launch {
            WealRequest.getGroupChatList {
                listener(this)
            }
        }
    }
}